<div id="groups_d_add" class="ajax_form">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel">添加</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <form class="form-horizontal col-sm-12" method="post" action=" <%-req.url%> ">
                <div class="form-group">
                    <label for="varname" class="col-sm-2 control-label">变量名</label>
                    <div class="col-sm-8">
                        <input type="class" class="form-control" id="varname" name="varname" placeholder="变量名" value="<%-groups.class%>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-8">
                        <label class="radio-inline">
                            <input type="radio" name="status" value="1" <%if(groups.status === 1 || !groups.status){%> checked=""  <%}%> >
                            启用
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="0" <%if(groups.status === 0){%> checked=""  <%}%>>
                            禁用
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label for="listorder" class="col-sm-2 control-label">顺序</label>
                    <div class="col-sm-4">
                        <input type="listorder" class="form-control" id="listorder" name="listorder" value="<%- groups.listorder || 0%>">
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-8">
                        <button type="submit" class="btn btn-primary">提 交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="clearfix"></div>
</div>